<!DOCTYPE html>
<html>

<head>
    <title>
        <%= title %>
    </title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
</head>

<body>
    <h1>
        <%= title %>
    </h1>
    <p>Welcome to
        <%= title %>
    </p>
</body>
<script type="text/javascript">
fetch('/api/activityall/summer2022/user', {
        method: 'post',
        body: JSON.stringify({
            'Model': 'userinfo'
        }),
        headers: {
            // 'Content-Type':'application/json;charset=UTF-8',
        }
    })
    .then(res => res.json())
    .then(json => {
        if (json.errcode == 10001) {
            // window.location.href = 'http://wx.kia.cn/login/?return_url='+window.location.href
        } else {
            console.log(json, 11)
        }
    });
</script>

</html>